import request from '@/utils/request'

// 查询会员列表
export function listUser(query) {
  return request({
    url: '/customer/v1/customer/announcement/page_v2',
    method: 'post',
    data: query
  })
}

// 取消发送会员公告
export function sendCancel(data) {
  return request({
    url: '/customer/v1/customer/announcement',
    method: 'delete',
    data: data
  })
}


// 授权用户选择
export function sendCreate(data) {
  return request({
    url: '/customer/v1/customer/announcement',
    method: 'post',
    data: data
  })
}


// 删除公告数据
export function delCustomerAnnouncement(id) {
  return request({
    url: '/customer/v1/customer/announcement/' + id,
    method: 'delete'
  })
}
